import request from '../utils/request'

export function getInfo() {
  return request({
    url: '/member/getInfo',
    method: 'get',
  })
}
export function updateAttrs(data){
  return request({
    url:'/member/updateAttrs',
    method: 'get',  
    data: data
  })
}
export function getAttrs(data){
  return request({
    url:'/member/getAttrs',
    method: 'get',
    data: data
  })
}

export function memberList(params) {
  return request({
    url: '/member/memberList',
    method: 'get',
    params: params
  })
}
export function memberOtherList(params) {
  return request({
    url: '/member/memberOtherList',
    method: 'get',
    params: params
  })
}

export function lockSysUser(params) {
  return request({
    url: '/member/lockSysUser',
    method: 'post',
    params: params
  })
}

export function createQrcode() {
  return request({
    url: '/member/createQrcode',
    method: 'get'
  })
}

export function scaner(params){
  return request({
    url: '/member/card_bill/scaner',
    method: 'get',
    params:params
  })
}

export function findByMobile(params){
  return request({
    url: '/member/findByMobile',
    method: 'get',
    params:params
  })
}

export function find(id){
  return request({
    url:'/member/find/'+id,
    method: 'get',
  })
}

export function updatePayCode(params){
  return request({
    url:'/member/updatePayCode',
    method: 'get',
    params:params
  })
}

export function getMeta(params){
  return request({
    url:'/member/getMeta',
    method: 'get',
    params:params
  })
}

export function updateMeta(params){
  return request({
    url:'/member/updateMeta',
    method: 'get',
    params:params,
  })
}

export function memberSummary(params){
  return request({
    url:'/member/memberSummary',
    method: 'get',
    params:params,
  })
}

